<?php

/**
 *   NIT Online Judge (C)2012-2099
 *   Developer: ACM Team @ Ningbo Institute of Technology
 *   
 *   function_core.php 2012-10-27 14:26 dgsrz@vip.qq.com
 */

if (!defined('NOJ_ACCESS_PERMISSION')) {
	exit('Unauthorized Access');
}

define('NOJ_CORE_FUNC', true);

function runtime_error($msg, $show = true, $save = true) {
	require_once libfile('class/error');
	NOJ_Error::runtime_error($msg, $show, $save);
}

function getcookie($key) {
	
}

function libfile($desc, $folder = '') {
	$path = NOJ_ROOT.'./source/'.$folder;
	list($pre, $name) = explode('/', $desc);
	return realpath("{$path}/{$pre}/{$pre}_{$name}.php");
}

function template() {
	
}

?>